% Test `@BinaryRelevance`

%%

clear classes
clc

%% Load the Matlab built-in 'iris' dataset into @DataSet object

generate_dataset_iris;

%%

br = BinaryRelevance();
br.build(ds.dmX.mat, ds.dmY.mat);
result = br.apply(ds.dmX.mat, ds.dmY.mat);

%%

result = CommonMultiLabelMetric.calc(ds.dmY.mat, result.Y_hat, result.Y_out);
